#!D:\\Python27\\python
# Filename:inherit.py
class SchoolMember:
    '''Represents any school member.'''
    def __init__(self,name,age):
        self.name = name
        self.age = age
        print '(Initialized SchoolMember:%s)'%self.name
    def tell(self):
        '''Tell my detail'''
        print 'Name:"%s" Age:"%s"'%(self.name,self.age),

class Teacher(SchoolMember):
    '''Represents a teacher.'''
    def __init__(self,name,age,salary):
        SchoolMember.__init__(self,name,age)
        self.salary = salary
        print '(Initialized Teacher:%s)'%self.name
    def tell(self):
        SchoolMember.tell(self)
        print 'Salary:"%d""'%self.salary

class Student(SchoolMember,Teacher):
    '''Represents a student.'''
    def __init__(self,name,age,marks,salary):
        SchoolMember.__init__(self,name,age)
        Teacher.__init__(self,name,age,salary)
        self.marks = marks
        print '(Initialized Student:%s)'%self.name
    def tell(self):
        SchoolMember.tell(self)
        print 'Marks:"%d""'%self.marks
        
s = Student('Swaroop',22,75,20000)
t = Teacher('Mrs.Shrividya',40,30000)

print#pint a blank line
members = [s,t]
for member in members:
    print'%s'%member.name
    member.tell()

'''change this script
   student extends schoolmember and teacher'''
    
